package com.hspedu.spring.ioc;

import java.util.concurrent.ConcurrentHashMap;

/**用于封装/记录 bean 对象的信息：Class 类信息，scope 值
 * 【1.bean 的作用范围 Scope
 * 2. bean 的 Class 对象，用于通过反射创建对象】
 * @author xianYun
 * @version 1.0
 **/
public class BeanDefinition {
    private String scope;
    private Class clazz;

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

    @Override
    public String toString() {
        return "BeanDefinition{" +
                "scope='" + scope + '\'' +
                ", clazz=" + clazz +
                '}';
    }
}
